<%--
  Created by IntelliJ IDEA.
  User: stiofan
  Date: 2017/2/2
  Time: 21:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/tags.jsp"%>

<aos:html title="房管信息查询分析" base="http" lib="ext">
<aos:body>
</aos:body>
</aos:html>
<script type="text/javascript" src="/static/js/gridToExcel.js"></script>
<aos:onready>
	<aos:viewport layout="fit">

		<aos:formpanel layout="column" columnWidth="1" border="false"
			autoScroll="true">
			<aos:docked dock="top" columnWidth="1" layout="column" border="true"
				height="135">
				<aos:dockeditem text="执行查询" margin="0 5" columnWidth="0.1"
					icon="icon71.png" onclick="queryFgxxcxfxByParams" />
				<aos:dockeditem text="重置条件" margin="0 5" columnWidth="0.1"
					icon="icon72.png" onclick="resetCxtjForm" />
				<aos:dockeditem text="结果导出" margin="0 5" columnWidth="0.1"
					icon="icon70.png" onclick="grid2Excel(fgxxcxfxGrid,'查询结果')" />
				<aos:panel columnWidth="1" layout="column">
					<aos:formpanel id="fgxxcxfxForm" layout="column" columnWidth="1">
                        <aos:textfield id="tdzdh" name="tdzdh" fieldLabel="土地宗地号" columnWidth="0.25"/>
                        <aos:textfield id="fcsyqr" name="fcsyqr" fieldLabel="房产使用权人" columnWidth="0.25"/>
                        <aos:textfield id="fczsbh" name="fczsbh" fieldLabel="房产证书编号" columnWidth="0.25"/>
                        <aos:textfield id="fcmc" name="fcmc" fieldLabel="房产名称" columnWidth="0.25"/>
                        <aos:textfield id="fcyzq" name="fcyzq" fieldLabel="房产起始原值" columnWidth="0.25"/>
						<aos:textfield id="fcyzz" name="fcyzz" fieldLabel="房产终止原值" columnWidth="0.25"/>
                        <aos:textfield id="jzmjq" name="jzmjq" fieldLabel="建筑面积起始值" columnWidth="0.25"/>
						<aos:textfield id="jzmjz" name="jzmjz" fieldLabel="建筑面积终止值" columnWidth="0.25"/>
                        <aos:datefield id="fcqdrqq" name="fcqdrqq" fieldLabel="房产取得起始日期" columnWidth="0.25"/>
						<aos:datefield id="fcqdrqz" name="fcqdrqz" fieldLabel="房产取得终止日期" columnWidth="0.25"/>
						<aos:textfield id="fcyt" name="fcyt" fieldLabel="房产用途" columnWidth="0.25"/>
                        
                      <%--   <aos:combobox id="zgswjgDm" name="zgswjgDm" fieldLabel="主管税务机关" columnWidth="0.25"
                                      url="fgcjxxbdfxService.queryZgswjgDmByHttpModel"
                                      onselect="queryZgswskfjDmByZgswjgDm" star="true" allowBlank="false"/>
                        <aos:combobox id="zgswskfjDm" name="zgswskfjDm" fieldLabel="主管税务科所" columnWidth="0.25"
                                      url="fgcjxxbdfxService.queryZgswskfjDmByZgswjgDm"
                                      onselect="querySsglyDmByZgswskfjDm" star="true" allowBlank="false"/>
                        <aos:combobox id="ssglyDm" name="ssglyDm" fieldLabel="税收管理员" columnWidth="0.25"
                                      url="fgcjxxbdfxService.querySsglyDmByZgswskfjDm" star="true" allowBlank="false"/> --%>
                    </aos:formpanel>
				</aos:panel>
			</aos:docked>
			<aos:gridpanel id="fgxxcxfxGrid" layout="fit" forceFit="true"
				columnWidth="1.5" autoScroll="true" hidePagebar="true"
				url="fgxxcxfxService.queryFgxxcxfxByParams" height="500"
				columnLines="true">
				<aos:column dataIndex="tdzdh" header="土地宗地号" width="0.05" align="center"/>
                <aos:column dataIndex="fcsyqr" header="房产使用权人" width="0.05" align="center"/>
                <aos:column dataIndex="jzmj" header="建筑面积" width="0.05" align="center" type="number" format="0.00" defaultValue="0"/>
                <aos:column dataIndex="fcyz" header="房产原值" width="0.05" align="center" type="number" format="0.00" defaultValue="0"/>
                <aos:column dataIndex="fcmc" header="房产名称" width="0.05" align="center"/>
                <aos:column dataIndex="fczldz" header="房产坐落地址" width="0.05" align="center"/>
                <aos:column dataIndex="fcqdrq" header="房产取得日期" width="0.1" type="date" format="Y-m-d"
                            align="center"/>
                <aos:column dataIndex="fczsbh" header="房产证书编号" width="0.05" align="center"/>
                <aos:column dataIndex="fcyt" header="房产用途" width="0.05" align="center"/>
			</aos:gridpanel>
		</aos:formpanel>
	</aos:viewport>
	<script type="text/javascript">
        function queryZgswskfjDmByZgswjgDm() {
            var params = {
                zgswjgDm: Ext.getCmp("zgswjgDm").getValue()
            };
            zgswskfjDm_store.getProxy().extraParams = params;
            zgswskfjDm_store.reload();
        }
        function querySsglyDmByZgswskfjDm() {
            var params = {
                zgswskfjDm: Ext.getCmp("zgswskfjDm").getValue()
            };
            ssglyDm_store.getProxy().extraParams = params;
            ssglyDm_store.reload();
        }
        function queryFgxxcxfxByParams() {
            fgxxcxfxGrid_store.getProxy().extraParams = Ext.getCmp

("fgxxcxfxForm").getValues();
            fgxxcxfxGrid_store.reload();
        }
        function resetCxtjForm() {
            AOS.reset(fgxxcxfxForm);
        }
        
    </script>
</aos:onready>